import java.io.File;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86132
 * Date: 2022-04-11
 * Time: 15:11
 */
public class Demo4 {
    public static void main(String[] args) {
        File f=new File("./aaa/bbb/ccc/ddd");
        f.mkdirs();//创建多级目录
        System.out.println(f.isDirectory());

    }
    public static void main1(String[] args) {
        File f=new File("./aaa");
        f.mkdir();//把f对应的目录创建出来,只能创建一级目录
        System.out.println(f.isDirectory());//判断是否是目录
    }
}
